{% if type == 'image'  %}
    <img  width="560" src="https://www.edu8.ca/img/{{ media }}" alt="Image Missing" /> 
{% elseif type  == 'youtube'  %}
    <iframe width="420" height="315" src="http://www.youtube.com/embed/{{ media }}" frameborder="0" allowfullscreen></iframe>
{% else  %}
    <p>no image or video</p>
{% endif %}
